package com.lyrcsoft.webflux_01.reactor;

import reactor.core.publisher.Flux;

public class ReactorPractice {
    public static void main(String[] args) {
        String wordstr = "hello guys i am bole welcome to luban school jdk quick fox prizev";
        Flux.fromArray(wordstr.split(" "))
                // 打散 上面split的每一个元素
                .flatMap(word -> Flux.fromArray(word.split("")))
                .distinct().sort().subscribe(System.out::print);
    }
}
